package cm.controller;

import cm.entity.ScheduleSettingDO;
import cm.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: yxh
 * @Description: 配置
 * @Date: Created in 2022/12/14 16:18
 * @Modified By:
 */
@Controller
@RequestMapping("/schedule")
@ResponseBody
public class ScheduleController {

    @Autowired
    private ScheduleService scheduleService;

    @PostMapping(value = "/list")
    public void selectAndTest(){
        List<ScheduleSettingDO> list = scheduleService.selectListByParam(1,1);
        System.err.println("最近时间select:"+LocalDateTime.now());
    }

    @PostMapping(value = "/update")
    public void update(){
        System.err.println("最近时间"+LocalDateTime.now());
    }
}
